package com.xy.breakfast.mapper;

import java.util.List;

//数据访问的基类
public interface BaseMapper<T> {

    public T getById(int id);

    public void save(T t);

    public void deleteById(int id);

    public void update(T t);

    public List<T> getAll();

    public List<T> getPage(int start,int end);
}
